import { IMessageHandle, IMessageStruct } from './msgHandleMg';
import { TableParty } from './../../model/clerkDataContext';
import { ObjectCopier } from './../objectCopier';
export class TablePartyMessageHandle implements IMessageHandle {
    get MessageName() { return "tableParty"; }
    get HandleName() { return "TablePartyMessageHandle"; }
    OnReceived(sender, args: IMessageStruct) {
        let tableParty = ObjectCopier.Copy<TableParty>(args.body);

        this.OnMessage && this.OnMessage(tableParty);
    }

    OnMessage: (tableParty: TableParty) => void;
}